package com.hb.I_Spring整合

import reactor.core.publisher.Flux
import reactor.core.publisher.Mono


fun Mono<String>.test01():Mono<String>{
    return Mono.just("test01");
}

fun Mono<String>.test02():Mono<String>{
    return Mono.just("test02");
}


fun Mono<String>.test03():Mono<String>{
    return Mono.just("test03");
}

fun test10():Mono<String>{
    return Mono.just("test10");
}

fun controller():Mono<String>{
    return test10().test01().test02().test03();
}

fun main() {

   //controller().subscribe(::print)
    Flux.just(1,2,3).subscribe()

}

